package com.yunfeisoft.business.model;

import com.yunfeisoft.common.base.BaseModel;
import com.yunfeisoft.common.sql.record.TransientField;
import com.yunfeisoft.common.utils.DateUtils;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * ClassName: ReceiveMealApply
 * Description: 接待用餐申请单
 *
 * @Author: Jackie liu
 * Date: 2020-01-09
 */
@Entity
@Table(name = "TT_RECEIVE_MEAL_APPLY")
public class ReceiveMealApply extends BaseModel implements Serializable {

    /**
     * Field serialVersionUID: 序列号
     */
    private static final long serialVersionUID = 1L;

    /**
     * 流程定义id
     */
    @Column
    private String workflowDefineId;

    /**
     * 日期
     */
    @Column
    private Date receiveTime;

    /**
     * 来访单位
     */
    @Column
    private String visitUnit;

    /**
     * 用餐人数
     */
    @Column
    private String mealNum;

    /**
     * 接待标准
     */
    @Column
    private String standard;

    /**
     * 陪同人员
     */
    @Column
    private String entourage;

    @TransientField
    private String createName;
    //下一节点处理人
    private String nextStepUserId;

    public String getReceiveTimeStr() {
        return DateUtils.dateToString(receiveTime);
    }

    public String getWorkflowDefineId() {
        return workflowDefineId;
    }

    public void setWorkflowDefineId(String workflowDefineId) {
        this.workflowDefineId = workflowDefineId;
    }

    public Date getReceiveTime() {
        return receiveTime;
    }

    public void setReceiveTime(Date receiveTime) {
        this.receiveTime = receiveTime;
    }

    public String getVisitUnit() {
        return visitUnit;
    }

    public void setVisitUnit(String visitUnit) {
        this.visitUnit = visitUnit;
    }

    public String getMealNum() {
        return mealNum;
    }

    public void setMealNum(String mealNum) {
        this.mealNum = mealNum;
    }

    public String getStandard() {
        return standard;
    }

    public void setStandard(String standard) {
        this.standard = standard;
    }

    public String getEntourage() {
        return entourage;
    }

    public void setEntourage(String entourage) {
        this.entourage = entourage;
    }

    public String getCreateName() {
        return createName;
    }

    public void setCreateName(String createName) {
        this.createName = createName;
    }

    public String getNextStepUserId() {
        return nextStepUserId;
    }

    public void setNextStepUserId(String nextStepUserId) {
        this.nextStepUserId = nextStepUserId;
    }
}